
class Friend {
  final String friendId;
  final String name;
  final int onlineState;

  const Friend({
    required this.friendId,
    required this.name,
    required this.onlineState
  });

  factory Friend.fromJson(Map<String, dynamic> jsonobj) {
    var item = Friend(
      friendId: jsonobj['friend_id'],
      name: jsonobj['name'],
      onlineState: jsonobj['online_state'],
    );
    return item;
  }
}
